﻿using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace PoolGame2.Menus
{
    public abstract class Overlay : Menu
    {

        public Overlay(PoolGame game)
            : base(game)
        {
        }

        public override bool IsModal() { return false; }
        public override void OnOpen()
        {
        }

        public override void OnClose()
        {
        }

        public override void Update(GameTime gameTime)
        {
            foreach (MenuItem item in menuItems)
            {
                item.Update(gameTime);
            }
        }

        private int GetFirstVisibleItem()
        {
            return 0;
        }
    }
}

